import Vue from 'vue'
import Router from 'vue-router'

/*
    抄自element-admin
 */

Vue.use(Router)

export const constantRoutes = [
    {
        path: '/dataForm',
        component: () => import('@/components/KaiDao'),
        name: 'Kaidao'
    },
    {
        path: '/settings',
        component: () => import('@/components/KaiDaoSettings'),
        name: 'KaidaoSettings'
    },
    {
        path: '/HowToImport',
        component: () => import('@/components/HowToImport'),
        name: 'HowToImport'
    },
    {
        path: '/',
        component: () => import('@/components/KaiDaoMain'),
        name: 'main'
    }
]

const createRouter = () => new Router({
    // mode: 'history', // require service support
    routes: constantRoutes,
})

const router = createRouter()

export default router